package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Contract;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectMapper {
    Page<List<NursingProject>> selectByPage(@Param("name") String name, @Param("status")Integer status);

    void insert(NursingProject nursingProject);

    NursingProject selectById(Long id);

    void updateNursingProject(NursingProject nursingProject);

    void updateNursingProjectStatus(@Param("id")Long id, @Param("status")Integer status);

    void delectById(Long id);

    List<NursingProjectVo> findAll();

    NursingProject selectByName(String name);

    NursingProject selectDiffByName(String name);
}
